package com.harisucici.websocketlib.entities.send;

import androidx.annotation.NonNull;

import com.harisucici.websocketlib.room.CurrentDao;
import com.harisucici.websocketlib.room.P2PUnSendDao;
import com.harisucici.websocketlib.room.SessionListDao;

public class SendMsgEntity<T> {
    @NonNull
    String cmdType;//P2P
    @NonNull
    String fromAccount;

    @NonNull
    String msg;
    @NonNull
    String msgType;//TEXT,IMAGE
    Long msgTime;//消息时长
    @NonNull
    T entity;
    @NonNull
    P2PUnSendDao pDao;
    @NonNull
    CurrentDao cDao;

    @NonNull
    SessionListDao sDao;

    @NonNull
    public SessionListDao getsDao() {
        return sDao;
    }

    public void setsDao(@NonNull SessionListDao sDao) {
        this.sDao = sDao;
    }

    public String getCmdType() {
        return cmdType;
    }

    public void setCmdType(String cmdType) {
        this.cmdType = cmdType;
    }

    public String getFromAccount() {
        return fromAccount;
    }

    public void setFromAccount(String fromAccount) {
        this.fromAccount = fromAccount;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public T getEntity() {
        return entity;
    }

    public void setEntity(T t) {
        this.entity = t;
    }

    public P2PUnSendDao getpDao() {
        return pDao;
    }

    public void setpDao(P2PUnSendDao pDao) {
        this.pDao = pDao;
    }

    public CurrentDao getcDao() {
        return cDao;
    }

    public void setcDao(CurrentDao cDao) {
        this.cDao = cDao;
    }

    public Long getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(Long msgTime) {
        this.msgTime = msgTime;
    }
}